/*
 * Copyright (c) 2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef MYAPPLICATION_NOVELTEST_H
#define MYAPPLICATION_NOVELTEST_H

#include "test_base.h"

class NovelTest : public TestBase {
public:
    NovelTest() = default;
    ~NovelTest() override = default;

protected:
    void OnTestPerformance() override;

    float fontSize_ = 0;                // 文字大小
    float lineHeight_ = 0;              // 行高
    float lineWidth_ = 0;               // 行宽
    float spaceWidth_ = 0;              // 每段开头的空格宽度
};

class NovelTest1 : public NovelTest {
public:
    NovelTest1() {
        text_ = {
            "Σ( ° △°|||)︴今天数学作业没写完，o(*≧▽≦)ツ┏━┓快借我抄一下これらの薬材(o>ε(o>ｕ(≧∩≦)阿里嘎多美羊羊桑▀̿～▀̿ ̿ꐦ"
        };
        fontSize_ = 50;
        lineHeight_ = 100;
        lineWidth_ = 600;
        spaceWidth_ = 45;
    }
};

class NovelTest2 : public NovelTest {
public:
    NovelTest2() {
        text_ = {
            "他，寂寞地站在自己88层的别墅上，冷眼看着这个吵闹的世界。"  ,
            "“少爷，下楼吧，上面冷”仆人端木夜璃开着直升飞机，飞到了他身边，想劝他不要在楼顶吹冷风了。明明还是夏天，却因为他的别墅比珠穆朗玛峰还高，所以上面已经下起了雪。",
            "“走开！”他捂住自己的耳朵，向端木夜璃仍了一麻袋人民币：“离开我的世界！你们这帮只能看见我的钱的俗人！",
            "端木夜璃叹了一口气，说：“少爷我对你是真心的。”说完，低头把麻袋扛上了飞机：“少爷再见！”。",
            "端木夜璃走后，他却又有些惶恐：他就这么走了？他走的好快啊？哼，果然每个人都在图自己的钱，还好袋子里装的是五年高考三年模拟。"
        };
        fontSize_ = 30;
        lineHeight_ = 45;
        lineWidth_ = 600;
        spaceWidth_ = 45;
    }
};

#endif //MYAPPLICATION_NOVELTEST_H
